<?php

class Controller_Common extends Controller_Abstract
{
	function actionCaptcha()
	{
	}
	function actionLeaderboard()
	{
		$sitemodel = new Site();
		$toderLeaders = $sitemodel->getTodayLeaders($this->_view['site']['id']);
		if($toderLeaders !== false){
			$this->_view['todayLeaders'] = $toderLeaders;
		}
		$weeklyLeaders = $sitemodel->getWeeklyLeaders($this->_view['site']['id']);
		if($weeklyLeaders !== false){
			$this->_view['weeklyLeaders'] = $weeklyLeaders;
		}
		$monthlyLeaders = $sitemodel->getMonthlyLeaders($this->_view['site']['id']);
		if($monthlyLeaders !== false){
			$this->_view['monthlyLeaders'] = $monthlyLeaders;
		}
		$allLeaders = $sitemodel->getAllLeaders($this->_view['site']['id']);
		if($allLeaders !== false){
			$this->_view['allLeaders'] = $allLeaders;
		}
		return $this->display($this->_site['template']);
	}

}
?>